package com.example.mybatis.mapper;

import com.example.mybatis.entity.User;
import com.example.mybatis.vo.QueryVO;

import java.util.List;

public interface UserMapper {

    User queryUserById(int id);

    User queryUserByUsername1(String name);

    User queryUserByUsername2(String name);

    int saveUser(User user);

    int updateUserById(User user);

    int deleteUserById(int id);

    // 查询 分页
    List<User> queryUserByQueryVo(QueryVO queryVo);

    int queryUserCount();

    List<User> queryUserByWhere(User user);

    List<User> queryUserByIds(QueryVO queryVO);

    List<User> queryUserOrder();

}